package com.wngbms.homework.config;

import com.wngbms.homework.bean.B1;
import com.wngbms.homework.bean.B2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

//@Import({B1.class, BeanSelector.class})
@ComponentScan(basePackages = {"com.wngbms.homework"})
@Import({B1.class, AnnotationSelector.class})
@Configuration
public class AppConfig {

    @Bean
    public B2 b2() {
        return new B2();
    }

}
